package cn.wyz.user.mapper;

import cn.wyz.user.domain.Logininfo;
import cn.wyz.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author WuyuZ
 * @since 2022-06-16
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {
    //这里的参数字段必须要取别名,因为sql语句里面有重名,要取别名
    Logininfo selectByUsernameAndType(@Param("username") String username,@Param("type") Integer type);

    /**
     * 查询user表,级联查
     * @param id
     * @return
     */
    Logininfo selectByUserId(Long id);
}
